package com.mazaiting.generator.enums;

import com.mazaiting.common.core.enums.IBaseEnum;

/**
 * 数据库类型 枚举
 */
public enum DbTypeEnum implements IBaseEnum<String> {
    SQLServer("com.microsoft.sqlserver.jdbc.SQLServerDriver"),
    MySQL("com.mysql.cj.jdbc.Driver"),
    Oracle("oracle.jdbc.driver.OracleDriver"),
    PostgreSQL("org.postgresql.Driver");

    /**
     * 驱动类
     */
    private final String driverClass;

    private DbTypeEnum(String driverClass) {
        this.driverClass = driverClass;
    }

    public String getDriverClass() {
        return driverClass;
    }

    @Override
    public String getValue() {
        return driverClass;
    }

    @Override
    public String getLabel() {
        return null;
    }
}